Repository navigation
TSLANG_ISSUES: 85 (own: a global of three concatenated string literals is refused) - #859
Merged
Merged
Conversation
…s is refused)
Under -mm=own, a module-level const whose initializer concatenates three or more string literals
("a" + "b" + "c") is refused at the initializer ("takes a second reference"); two literals compile.
Found on pre-alpha128 (0c8439c) in native_ts_graphics sakura_forest_ser (LIBRARY_EXPORTS), which
keeps a function returning the concatenation as a workaround.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds open item 85 to
TSLANG_ISSUES.md.Under
-mm=own, a module-levelconstbuilt from three or more concatenated string literals is refused at the initializer:One literal or two concatenated literals compile. gc prints the expected string. The entry has a complete repro, run on pre-alpha128 (0c8439c), and a suspected cause that hasn't been checked in the source yet.
Context
Found while removing the native_ts_graphics -mm=own workarounds after the pre-alpha128 bump (ASDAlexander77/native_ts_graphics#325). Of those workarounds, this is the only compiler gap left:
examples/sakura_forest_ser.tskeepslibraryExports()instead of a globalLIBRARY_EXPORTS.🤖 Generated with Claude Code